package com.weng.apistarter.other;

public class IdTitle {
    private Integer id;

    private String title;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public IdTitle() {
    }

    public IdTitle(Integer id, String title) {
        this.id = id;
        this.title = title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    @Override
    public String toString() {
        return "IdTitle[" +
                "id=" + id +
                ", title=" + title +
                "]";
    }
}